<?php /* Smarty version 2.6.26, created on 2014-06-13 01:11:38
         compiled from C:/wamp/www/360/index/Tpl/Show/Show.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'C:/wamp/www/360/index/Tpl/Show/Show.html', 40, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<link rel="stylesheet" href="<?php echo @__PUBLIC__; ?>
/css/question.css" />
	<script type="text/javascript" src="<?php echo @__PUBLIC__; ?>
/js/question.js"></script>
</head>
<body>
	
	<div id='location'>
		<a href="">全部分类</a>
			&gt;&nbsp;电脑&nbsp;&nbsp;
			&gt;&nbsp;<a href="">硬件</a>&nbsp;&nbsp;
	</div>
<div class="SSwd">
<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<!-- 判断是不是自已来回答 ,如果是自已，也看不到回答框-->
					
			
						<!-- 这里是判断，如果，解决就显示解决了的CSS，没有就显示没有解决 -->
					
					<?php if ($this->_tpl_vars['bestanswer'] == 0): ?>
					<div class='ans-state wait'></div>
					<?php else: ?>
					<div class='ans-state2'></div>
					<?php endif; ?>
					<div class='answer'>
						<p class='ans-title'><?php echo $this->_tpl_vars['memberinfo']['content']; ?>

							<b class='point'><?php echo $this->_tpl_vars['memberinfo']['reward']; ?>
</b>
						</p>
					</div>
					<ul>
						<li><a href=""><?php echo $this->_tpl_vars['memberinfo']['username']; ?>
</a></li>
						<li><i class='level lv1' title='Level 1'></i></li>
						<li><?php echo ((is_array($_tmp=$this->_tpl_vars['memberinfo']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
</li>
				
					</ul>
					<!-- 如果已被采纳，就把回答框关了 -->
					<?php if ($this->_tpl_vars['bestanswer'] == 0): ?>
					<div class='ianswer'>
						<?php if ($this->_tpl_vars['memberinfo']['username'] == $_SESSION['name']): ?>
						<form action="index.php?c=Show&m=answer" method='POST'>
							<span style="color:red; font-size: 14px;font-weight:700;">么么哒，您无法回答自已的问题，耐心等待热心的网友们来帮助您吧^_^:</span>
							
						</form>
						<?php else: ?>
						<form action="index.php?c=Show&m=answer" method='POST'>
							<p id="inputanswer">我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='asid' value='<?php echo $this->_tpl_vars['memberinfo']['asid']; ?>
'>
							<input type="submit" value='提交回答' id='anw-sub'/>
						<?php endif; ?>
					</div>
					<?php else: ?>
					
					<!-- 满意回答 -->
					<div class='ans-right'>
						
						<p class='title'><i></i><span></span></p>
						
						<!-- <p class='ans-cons'>很不错！</p> -->
						<dl>
							<dt>
								<a href=""><img src="<?php echo @__PUBLIC__; ?>
//images/picico.png" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href="">用户</a>
							</dd>
							<dd><i class='level lv1'></i>
							<?php if ($this->_tpl_vars['bestanswer'] == 0): ?>
							<span>｛没有最佳答案哦，亲，您完善回答哦^!^｝</span>
							<?php else: ?>
							<?php $_from = $this->_tpl_vars['bestanswer']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['best_k'] => $this->_tpl_vars['best_v']):
?>
								<span>｛最佳答案｝：<?php echo $this->_tpl_vars['best_v']['content']; ?>
</span>
							<?php endforeach; endif; unset($_from); ?>
							<?php endif; ?>
							</dd>
							<dd>20%</dd>
						</dl>

					</div>
					<?php endif; ?><!-- 满意回答 -->
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong>20</strong> 条回答</p>
					<ul>
					<?php if ($this->_tpl_vars['answerList'] == ''): ?>
					<li>
							<div class='face'>
								<a href="">
									<img src="./Images/noface.gif" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p>暂时还没有答案，等您来完善哦，<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(1900.1.1)</span></p>
							</div>
							
								<a href="" class='adopt-btn'>采纳</a>
							
						</li>
					<?php else: ?>
					<?php $_from = $this->_tpl_vars['answerList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
						<li>
						
							<div class='face'>
								<a href="">
									<img src="<?php echo @__PUBLIC__; ?>
/images/picico.png" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p><?php echo $this->_tpl_vars['v']['content']; ?>
<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(1900.1.1)</span></p>
							</div>
							<?php if ($_SESSION['uid'] == $this->_tpl_vars['memberinfo']['uid']): ?>
								<a href="<?php echo @__APP__; ?>
?c=Show&m=accept&anid=<?php echo $this->_tpl_vars['v']['anid']; ?>
" class='adopt-btn'>采纳</a>
								<?php else: ?>
								<a href="#inputanswer" class='adopt-btn'>完善答案</a>
								<?php endif; ?>
						</li>
						<?php endforeach; endif; unset($_from); ?>	
						<?php endif; ?>
						<!-- <li>
							<div class='face'>
								<a href="">
									<img src="./Images/noface.gif" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p>真不错啊！<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(1900.1.1)</span></p>
							</div>
							
								<a href="" class='adopt-btn'>采纳</a>
							
						</li> -->
					</ul>
					<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
					<?php $_from = $this->_tpl_vars['waitYouAns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['kwait'] => $this->_tpl_vars['vwait']):
?>
						<tr>
							<td class='t1'><a href="<?php echo @__APP__; ?>
?c=Show&asid=<?php echo $this->_tpl_vars['vwait']['asid']; ?>
"><?php echo $this->_tpl_vars['vwait']['content']; ?>
</a></td>
							<td>20&nbsp;回答</td>
							<td>1900.1.1</td>
						</tr>
						<?php endforeach; endif; unset($_from); ?>
					</table>
				</div>
			</div>
		<!-- 右侧 -->
		<div id='right'>
		<?php if ($this->_tpl_vars['now_memberCenter'] == 0): ?>
			<div class='userinfo'>
			请先登陆
			</div>

		<?php else: ?>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href="" ><img style="border-radius:50%" src="<?php echo $this->_tpl_vars['icoinfo']; ?>
" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="">
						<b><?php echo $_SESSION['name']; ?>
</b>
					</a>
					<a href="">
						<i class='level lv1' title='Level 1'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;"><?php echo $this->_tpl_vars['now_memberCenter']['point']; ?>
<b class='point'></b></a></dd>
				<dd>经验值：<?php echo $this->_tpl_vars['now_memberCenter']['exp']; ?>
</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href=""><?php echo $this->_tpl_vars['now_memberCenter']['answer']; ?>
</a></td>
					<td><a href="">20%</a></td>
					<td class='last'><a href=""><?php echo $this->_tpl_vars['now_memberCenter']['ask']; ?>
</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="">我提问的</a></li>
				<li><a href="">我回答的</a></li>
			</ul>
		</div>
		<?php endif; ?>
		<!-- <div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div> -->
	<div class='clear'></div>
	<div class='star'>
		<p class='title'>后盾问答之星</p>
		<span class='star-name'>回答问题最多的人</span>
			<div class='star-info'>
				<div>
					<a href="" class='star-face'>
						<img src="<?php echo $this->_tpl_vars['icoAnswerMore']; ?>
" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li><a href=""><?php echo $this->_tpl_vars['moreanswer']['username']; ?>
</a></li>
						<i class='level lv1' title='Level 1'></i>
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span><?php echo $this->_tpl_vars['moreanswer']['answer']; ?>
</span></li>
					<li>采纳率：<span>50%</span></li>
				</ul>
			</div>
		<span class='star-name'>红验最多的人</span>

		<div class='star-info'>
			<div>
				<a href="" class='star-face'>
					<img src="<?php echo $this->_tpl_vars['icoExpMore']; ?>
" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li><a href=""><?php echo $this->_tpl_vars['moreexp']['username']; ?>
</a></li>
					<i class='level lv1' title='Level 1'></i>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span><?php echo $this->_tpl_vars['moreexp']['answer']; ?>
</span></li>
				<li>红验数:<span><?php echo $this->_tpl_vars['moreexp']['exp']; ?>
</span></li>
			</ul>
		</div>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>回答过的条数</li>
			</ul>
			<ul class='ul-list'>
			<?php $_from = $this->_tpl_vars['moreansweruser']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['kanswer'] => $this->_tpl_vars['vanswer']):
?>
				<li>
					<a href=""><i class='rank r1'></i><?php echo $this->_tpl_vars['vanswer']['username']; ?>
</a>
					<span><?php echo $this->_tpl_vars['vanswer']['answer']; ?>
</span>
				</li>
				<?php endforeach; endif; unset($_from); ?>
				<!-- <li>
					<a href=""><i class='rank r1'></i>houdunwang.com</a>
					<span>100</span>
				</li>
				<li>
					<a href=""><i class='rank r2'></i>houdunwang.com</a>
					<span>100</span>
				</li>
				<li>
					<a href=""><i class='rank r3'></i>houdunwang.com</a>
					<span>100</span>
				</li>				 -->
			</ul>
		</div>
	</div>
</div>
</div>
<!-- ---右侧结束---- -->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 后盾网</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="./Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->